package data.financialdata.stub;

import java.util.ArrayList;

import po.CashRecordLineItem;
import po.CashRecordList;
import po.CashRecordPO;
import po.LikeHashMap;
import po.UserPO;
import utility.TimePeriod;
import dataservice.financialdataservice.CashRecordDataService;

public class CashReportDataServiceSerializableImplStub implements CashRecordDataService{
	LikeHashMap<String,CashRecordPO> cashRecordList = new LikeHashMap<String,CashRecordPO>();
	
	public boolean addCashRecord(CashRecordPO po) {
		// TODO Auto-generated method stub
		cashRecordList.put(po.getSerialNumber().toString(),po);
		System.out.println("add CashRecord successfully");
		return true;
	}

	public CashRecordPO find(String id) {
		// TODO Auto-generated method stub
		return cashRecordList.get(id);
	}

	public ArrayList<CashRecordPO> mutipleConditionSearch(TimePeriod period,
			UserPO user) {
		// TODO Auto-generated method stub
		ArrayList<CashRecordPO> list = new ArrayList<CashRecordPO>();
		CashRecordList itemList = new CashRecordList();
		itemList.add(new CashRecordLineItem("name", 23, "comment"));
		list.add(new CashRecordPO("accountId",itemList,"userId"));
		return list;
	}
	
	public void init() {
		// TODO Auto-generated method stub
		
	}

	public void finish() {
		// TODO Auto-generated method stub
		
	}
	
}
